﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MODEL
{
   public partial class qgzx_position_application
    {
        #region 纯的实体对象 + ToPOCO()
        /// <summary>
        /// 纯的实体对象
        /// </summary>
        /// <returns></returns>
        public qgzx_position_application ToPOCO()
        {
            qgzx_position_application poco = new qgzx_position_application()
            {
                PosApplyId = this.PosApplyId,
                CompanyName = this.CompanyName,
                CompanyId = this.CompanyId,
                PositionName = this.PositionName,
                PositionId = this.PositionId,
                ReleaseTime = this.ReleaseTime,
                ApplyStudentName = this.ApplyStudentName,
                ApplyStudentNum = this.ApplyStudentNum,
                Introduction = this.Introduction,
                Experience = this.Experience,
                ApplyReason = this.ApplyReason,
                ApplyDate = this.ApplyDate,
                IsOnGuard = this.IsOnGuard,
                DistriResult = this.DistriResult,
                DistriReason = this.DistriReason,
                AuditResult = this.AuditResult,
                AuditReason = this.AuditReason,
                AuditTime = this.AuditTime
            };
            return poco;
        }
        #endregion

        #region 1.0 生成 TViewModel 实体对象 +ToViewModel
        /// <summary>
        /// 生成 很纯洁的 实体对象
        /// </summary>
        /// <returns></returns>
        public ViewModel.Position_application ToViewModel()
        {
            ViewModel.Position_application poco = new ViewModel.Position_application()
            {
                PosApplyId = this.PosApplyId,
                CompanyName = this.CompanyName,
                CompanyId = this.CompanyId,
                PositionName = this.PositionName,
                PositionId = this.PositionId,
                ReleaseTime = this.ReleaseTime,
                ApplyStudentName = this.ApplyStudentName,
                ApplyStudentNum = this.ApplyStudentNum,
                Introduction = this.Introduction,
                Experience = this.Experience,
                ApplyReason = this.ApplyReason,
                ApplyDate = this.ApplyDate,
                IsOnGuard = this.IsOnGuard,
                DistriResult = this.DistriResult,
                DistriReason = this.DistriReason,
                AuditResult = this.AuditResult,
                AuditReason = this.AuditReason,
                AuditTime = this.AuditTime
            };
            return poco;
        }
        #endregion
    }
}
